package ch.zhaw.mini.doclet.formater;

import com.sun.javadoc.ClassDoc;

public class FormatClassPage extends FormatPage{
	private ClassDoc cs;
	
	public FormatClassPage(ClassDoc cs) {
		this.cs = cs;
	}
	/**
	 * Prints the Head of the Wiki Class Page (Short Description + TOC + Class
	 * Title)
	 * 
	 * @return Class Page Title String
	 */
	public StringBuilder printHead() {
		// this is ch.zhaw.javadoc2mediawiki.helloworld package description, see
		// [[http://en.wikipedia.org/wiki/Java_package Java Packages]] (Limited
		// to like 100 Chars (for better view in the search result)
		// __TOC__
		//
		// = Class: ch.zhaw.javadoc2mediawiki.helloworld =
		//
		//
		StringBuilder output = new StringBuilder();

		output.append(createSmallComment(new StringBuilder(cs.commentText())));
		return  output;

	}
}
